Using RMarkdown

Cory Whitney

RMarkdown: overview

  • Use it!
  • You will thank yourself
  • Save often with new version
  • Or use git plot of chunk unnamed-chunk-1plot of chunk unnamed-chunk-1

RMarkdown: getting stuck

  • Use a ‘?’ with function, package, data name in the R console
  • If you get stuck, use Google: just add “R” to a search e.g. a copy of an error message
  • Someone else has also been confused by it and has written about it
  • Thousands of talented programmers who scan the web and answer these problems

plot of chunk unnamed-chunk-2

plot of chunk unnamed-chunk-3 Hadley Wickham plot of chunk unnamed-chunk-4 Yihui Xie

RMarkdown: basics

  • open a markdown file

plot of chunk unnamed-chunk-8

  • Use the setup chunk
  • Remember the Table of Contents